import Layout from '@/components/core/layout'

const router = {
  path: '/bill',
  name: 'bill',
  meta: {
    title: 'bill',
    icon: 'mdi-calendar-range',
  },
  component: Layout,
  redirect: '/bill/index',
  children: [
    {
      path: 'index',
      name: 'revenue',
      component: () => import('@/views/bill/index'),
      meta: {
        title: 'revenue'
      }
    },
    {
      path: 'expense',
      name: 'expense',
      redirect: '/expense/all',
      component: () => import('@/components/emtry'),
      meta: {
        title: 'expense'
      },
      children: [
        {
          path: 'all',
          name: 'bill_all',
          component: () => import('@/views/bill/expense/all'),
          meta: {
            title: 'bill_all'
          }
        },
        {
          path: 'hotel',
          name: 'bill_hotel',
          component: () => import('@/views/bill/expense/hotel'),
          meta: {
            title: 'bill_hotel'
          }
        },
        {
          path: 'restaurant',
          name: 'bill_restaurant',
          component: () => import('@/views/bill/expense/restaurant'),
          meta: {
            title: 'bill_restaurant'
          }
        },
        {
          path: 'scenic',
          name: 'bill_scenic',
          component: () => import('@/views/bill/expense/scenic'),
          meta: {
            title: 'bill_scenic'
          }
        },
        {
          path: 'car',
          name: 'bill_car',
          component: () => import('@/views/bill/expense/car'),
          meta: {
            title: 'bill_car'
          }
        },
        {
          path: 'aircraft',
          name: 'bill_aircraft',
          component: () => import('@/views/bill/expense/aircraft'),
          meta: {
            title: 'bill_aircraft'
          }
        },
        {
          path: 'train',
          name: 'bill_train',
          component: () => import('@/views/bill/expense/train'),
          meta: {
            title: 'bill_train'
          }
        },
        {
          path: 'bus',
          name: 'bill_bus',
          component: () => import('@/views/bill/expense/bus'),
          meta: {
            title: 'bill_bus'
          }
        },
        {
          path: 'ship',
          name: 'bill_ship',
          component: () => import('@/views/bill/expense/ship'),
          meta: {
            title: 'bill_ship'
          }
        },
        {
          path: 'insurance',
          name: 'bill_insurance',
          component: () => import('@/views/bill/expense/insurance'),
          meta: {
            title: 'bill_insurance'
          }
        },
        {
          path: 'visa',
          name: 'bill_visa',
          component: () => import('@/views/bill/expense/visa'),
          meta: {
            title: 'bill_visa'
          }
        },
        {
          path: 'other',
          name: 'bill_other',
          component: () => import('@/views/bill/expense/other'),
          meta: {
            title: 'bill_other'
          }
        },
      ]
    },
    {
      path: 'guideBill',
      name: 'guideBill',
      component: () => import('@/views/bill/guide_bill'),
      meta: {
        title: 'guideBill'
      }
    },
  ]
}

export default router
